//引入依赖
import Vue from 'vue'
import Router from 'vue-router'



//引入插件
import hello from '../components/HelloWorld.vue'
import View1 from '../components/View1.vue'
import CUWU from '../components/CUWU.vue'
import detali from '../components/detali.vue'
import lies  from '../components/lies.vue'

Vue.use(Router)

//创建并抛出新的router实例

export default new Router({
    routes: [
        {
            path: '/',//路由地址
            name: "hello",//路由名字
            component: hello//路由要显示的组件
        },
        {
            path: '/View1',//路由地址
            name: "View1",//路由名字
            component: View1//路由要显示的组件
        },
        {
            path: '*',//路由地址
            // name:"View1",//路由名字
            component: CUWU//路由要显示的组件
        },
        {
            path: '/detali/:id',//路由地址
            name: "detali ",//路由名字
            component: detali //路由要显示的组件
        },
        {
            path: '/lies',//路由地址
            name: "lies",//路由名字
            component: lies //路由要显示的组件
        },
    ]
})